<!-- quirks -->
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8"/>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
	<meta name="renderer" content="webkit"/>
	<title>扩展对象</title>
	<link href="../ting-quirks.css" rel="stylesheet"/>
	<!--[if lt IE 9]><script src="../dist/sky-compat.js"></script><![endif]-->
	<!--[if gte IE 9]><!--><script src="../dist/sky-modern.js"></script><!--><![endif]-->
	<script src="../demo.js"></script>
</head>
<body>
<div class="container-fluid">
	<h3>JSON</h3>
	<p>JSON 对象包含用于解析 JSON 的方法</p>
	<pre class="code">alert(JSON.stringify({
	a:"s\"tr",
	b:[1,2,NaN,undefined],
	c:false,
	d:{
		a:new Date(),
		b:/reg/,
		c:function(){}
	},
	e:undefined
}));
//{"a":"s\"tr","b":[1,2,null],"c":false,"d":{"a":"2019-09-15T07:49:12.660Z","b":{}}}</pre>
	<div class="btn-toolbar">
		<a class="btn btn-primary" href="javascript:void 0;" onclick="run(this)">运行</a>
	</div>
	<pre class="code">var o=JSON.parse("{\"a\":1,\"b\":2}");
alert(o.a);</pre>
	<div class="btn-toolbar">
		<a class="btn btn-primary" href="javascript:void 0;" onclick="run(this)">运行</a>
	</div>
</div>
</body>
</html>